<@content for="title">Publication Type List</@content>
<table class="publicationTypeList">
    <tr>
        <#list elements?keys as key>
        <td>
            <table>
                <thead>
                    <@link_to controller="books" action="list" query_params={"publicationTypeCode":key.getCode(), "genreCode":"none"}>
                    <@message key=key.getCode() />
                    </@>
                </thead>
                <#assign index = elements?keys?seq_index_of(key)>
                <#assign values = elements?values[index]!"">
                <tbody>
                    <#list values as value>
                    <tr>
                        <td>

                            <@link_to controller="books" action="list" query_params={"publicationTypeCode":key.getCode(), "genreCode":value.getCode()}>

                            <@message key=value.getCode() />
                            </@>
                        </td>
                    </tr>
                    </#list>
                </tbody>
            </table>
        </td>
        </#list>
    </tr>
</table>